package cn.demomaster.quickpicturer.model;

import android.text.TextUtils;

import java.util.ArrayList;

/**
 * 图片文件夹实体类
 */
public class Folder {

    private String name;
    private ArrayList<ImageInfo> images;

    public Folder(String name) {
        this.name = name;
    }

    public Folder(String name, ArrayList<ImageInfo> images) {
        this.name = name;
        this.images = images;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public ArrayList<ImageInfo> getImages() {
        return images;
    }

    public void setImages(ArrayList<ImageInfo> images) {
        this.images = images;
    }

    public void addImage(ImageInfo image) {
        if (image != null) {
            if (images == null) {
                images = new ArrayList<>();
            }
            images.add(image);
        }
    }
}

